package com.s10.model;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class Dashboard {
	
	JFrame dframe;
    JPanel dpanel;
    JLabel dl1;
    final String DASHBOARD_WELCOME = "WELCOME: ";
    private String username;
    
    public Dashboard(String username) {
    	
    	this.username = username;
		
    	dframe = new JFrame();
    	dframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	dframe.setSize(200,100);
		
		dpanel = new JPanel();
		dframe.add(dpanel);
		
		dl1 = new JLabel();
		dl1.setText(DASHBOARD_WELCOME + getUsername());
		
		dpanel.add(dl1);
		dframe.setVisible(true);
		
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}
